package com.android.model.entity.res;

import java.math.BigDecimal;
import java.util.List;

/**
 * OrderCompletedResult
 * Created by TenFace on 2018/5/3.
 */

public class OrderCompletedResult {


    /**
     * data : [{"accountId":"ST-00000001","orderId":"46214603f33e48f19e41ef58b571a996","symbol":"55TBTC","orderType":"LIMIT","orderSide":"BUY","limitPrice":1,"quantity":1,"filledAveragePrice":0,"filledCumulativeQuantity":0,"openQuantity":1,"orderStatus":"CANCELLED","createdAt":1525253203620,"updatedAt":1525253203620,"cancelledUpdateAt":1525254288607,"filledUpdatedAt":null,"cumulativeCommission":0},{"accountId":"ST-00000001","orderId":"985fa1eaf4204f7d9aae8b8fdf7aa471","symbol":"55TBTC","orderType":"LIMIT","orderSide":"BUY","limitPrice":1,"quantity":1,"filledAveragePrice":0,"filledCumulativeQuantity":0,"openQuantity":1,"orderStatus":"CANCELLED","createdAt":1525253192548,"updatedAt":1525253192548,"cancelledUpdateAt":1525254289858,"filledUpdatedAt":null,"cumulativeCommission":0},{"accountId":"ST-00000001","orderId":"a64a1937a448481bb153b7182cc4033b","symbol":"55TBTC","orderType":"LIMIT","orderSide":"BUY","limitPrice":1,"quantity":1,"filledAveragePrice":0,"filledCumulativeQuantity":0,"openQuantity":1,"orderStatus":"CANCELLED","createdAt":1525253151496,"updatedAt":1525253151496,"cancelledUpdateAt":1525254290987,"filledUpdatedAt":null,"cumulativeCommission":0},{"accountId":"ST-00000001","orderId":"d9b28f747cd04614854dadc035e66611","symbol":"BTCUSDT","orderType":"LIMIT","orderSide":"BUY","limitPrice":10000000,"quantity":0.11,"filledAveragePrice":0,"filledCumulativeQuantity":0,"openQuantity":0.11,"orderStatus":"CANCELLED","createdAt":1525245037932,"updatedAt":1525245037932,"cancelledUpdateAt":1525246286771,"filledUpdatedAt":null,"cumulativeCommission":0},{"accountId":"ST-00000001","orderId":"aa951331593444abb165f45749617e50","symbol":"55TBTC","orderType":"LIMIT","orderSide":"BUY","limitPrice":1,"quantity":1,"filledAveragePrice":0,"filledCumulativeQuantity":0,"openQuantity":1,"orderStatus":"CANCELLED","createdAt":1525244294667,"updatedAt":1525244294667,"cancelledUpdateAt":1525254295433,"filledUpdatedAt":null,"cumulativeCommission":0},{"accountId":"ST-00000001","orderId":"7a6c9fe60f4b4f51a1007d52badeef4d","symbol":"55TBTC","orderType":"LIMIT","orderSide":"BUY","limitPrice":1,"quantity":1,"filledAveragePrice":0,"filledCumulativeQuantity":0,"openQuantity":1,"orderStatus":"CANCELLED","createdAt":1525243739054,"updatedAt":1525243739054,"cancelledUpdateAt":1525254296510,"filledUpdatedAt":null,"cumulativeCommission":0},{"accountId":"ST-00000001","orderId":"645b85f2aa3b4f5f9e6981103f103b64","symbol":"BTCUSDT","orderType":"LIMIT","orderSide":"BUY","limitPrice":10000000,"quantity":0.11,"filledAveragePrice":0,"filledCumulativeQuantity":0,"openQuantity":0.11,"orderStatus":"CANCELLED","createdAt":1525241167871,"updatedAt":1525241167871,"cancelledUpdateAt":1525242155920,"filledUpdatedAt":null,"cumulativeCommission":0},{"accountId":"ST-00000001","orderId":"bc132b20a22b45b6ae66ab819134460d","symbol":"55TBTC","orderType":"LIMIT","orderSide":"BUY","limitPrice":2,"quantity":3,"filledAveragePrice":0,"filledCumulativeQuantity":0,"openQuantity":3,"orderStatus":"CANCELLED","createdAt":1525238587975,"updatedAt":1525238587975,"cancelledUpdateAt":1525254298407,"filledUpdatedAt":null,"cumulativeCommission":0},{"accountId":"ST-00000001","orderId":"8b546d51d78d4afc834fec35c3b88cbc","symbol":"55TBTC","orderType":"LIMIT","orderSide":"SELL","limitPrice":1,"quantity":1,"filledAveragePrice":0,"filledCumulativeQuantity":0,"openQuantity":1,"orderStatus":"CANCELLED","createdAt":1525231994639,"updatedAt":1525231994639,"cancelledUpdateAt":1525254299414,"filledUpdatedAt":null,"cumulativeCommission":0},{"accountId":"ST-00000001","orderId":"864004b5af384dca9321bf92ce40badc","symbol":"55TBTC","orderType":"LIMIT","orderSide":"BUY","limitPrice":1,"quantity":1,"filledAveragePrice":0,"filledCumulativeQuantity":0,"openQuantity":1,"orderStatus":"CANCELLED","createdAt":1525231957612,"updatedAt":1525231957612,"cancelledUpdateAt":1525254300235,"filledUpdatedAt":null,"cumulativeCommission":0},{"accountId":"ST-00000001","orderId":"604a15393f0e4174a09f20e82b724345","symbol":"BTCUSDT","orderType":"LIMIT","orderSide":"SELL","limitPrice":1,"quantity":1,"filledAveragePrice":0,"filledCumulativeQuantity":0,"openQuantity":1,"orderStatus":"CANCELLED","createdAt":1525231774570,"updatedAt":1525231774570,"cancelledUpdateAt":1525254302099,"filledUpdatedAt":null,"cumulativeCommission":0},{"accountId":"ST-00000001","orderId":"098fb3b52e6c47c4aec65a4a34fba598","symbol":"55TBTC","orderType":"LIMIT","orderSide":"SELL","limitPrice":3,"quantity":4,"filledAveragePrice":0,"filledCumulativeQuantity":0,"openQuantity":4,"orderStatus":"CANCELLED","createdAt":1525230910865,"updatedAt":1525230910865,"cancelledUpdateAt":1525231246425,"filledUpdatedAt":null,"cumulativeCommission":0},{"accountId":"ST-00000001","orderId":"5bcda4a43c634ac3857d989002da2afd","symbol":"55TBTC","orderType":"LIMIT","orderSide":"BUY","limitPrice":2,"quantity":3,"filledAveragePrice":0,"filledCumulativeQuantity":0,"openQuantity":3,"orderStatus":"CANCELLED","createdAt":1525230892108,"updatedAt":1525230892108,"cancelledUpdateAt":1525231251303,"filledUpdatedAt":null,"cumulativeCommission":0},{"accountId":"ST-00000001","orderId":"97f5735208014ef9876b1560f7059c00","symbol":"55TBTC","orderType":"LIMIT","orderSide":"SELL","limitPrice":2,"quantity":3,"filledAveragePrice":0,"filledCumulativeQuantity":0,"openQuantity":3,"orderStatus":"CANCELLED","createdAt":1525230708664,"updatedAt":1525230708664,"cancelledUpdateAt":1525254306689,"filledUpdatedAt":null,"cumulativeCommission":0},{"accountId":"ST-00000001","orderId":"fd686782f6714f648108c2560669b04f","symbol":"BTCUSDT","orderType":"LIMIT","orderSide":"BUY","limitPrice":10000,"quantity":1,"filledAveragePrice":0,"filledCumulativeQuantity":0,"openQuantity":1,"orderStatus":"CANCELLED","createdAt":1524910893530,"updatedAt":1524910893530,"cancelledUpdateAt":1524910967004,"filledUpdatedAt":null,"cumulativeCommission":0},{"accountId":"ST-00000001","orderId":"510b633d16c14538a558db44e571e986","symbol":"BTCUSDT","orderType":"LIMIT","orderSide":"BUY","limitPrice":10000000,"quantity":0.11,"filledAveragePrice":0,"filledCumulativeQuantity":0,"openQuantity":0.11,"orderStatus":"CANCELLED","createdAt":1524910123415,"updatedAt":1524910123415,"cancelledUpdateAt":1524910614149,"filledUpdatedAt":null,"cumulativeCommission":0},{"accountId":"ST-00000001","orderId":"95bcf64ecae843f8884c2d0335514ce1","symbol":"55TUSDT","orderType":"LIMIT","orderSide":"BUY","limitPrice":10000000,"quantity":0.11,"filledAveragePrice":0,"filledCumulativeQuantity":0,"openQuantity":0.11,"orderStatus":"CANCELLED","createdAt":1524899072709,"updatedAt":1524899072709,"cancelledUpdateAt":1524911282759,"filledUpdatedAt":null,"cumulativeCommission":0},{"accountId":"ST-00000001","orderId":"2114dfd2a6ca497793f2204ef6d12315","symbol":"55TBTC","orderType":"LIMIT","orderSide":"SELL","limitPrice":1,"quantity":1,"filledAveragePrice":0,"filledCumulativeQuantity":0,"openQuantity":1,"orderStatus":"CANCELLED","createdAt":1524898695161,"updatedAt":1524898695161,"cancelledUpdateAt":1524910326776,"filledUpdatedAt":null,"cumulativeCommission":0},{"accountId":"ST-00000001","orderId":"aaee7fa739744e899a22877e78877369","symbol":"BTCUSDT","orderType":"LIMIT","orderSide":"SELL","limitPrice":323211,"quantity":41111,"filledAveragePrice":0,"filledCumulativeQuantity":0,"openQuantity":41111,"orderStatus":"CANCELLED","createdAt":1524898642447,"updatedAt":1524898642447,"cancelledUpdateAt":1524909309480,"filledUpdatedAt":null,"cumulativeCommission":0},{"accountId":"ST-00000001","orderId":"c79e0d019a584f1b996f5f4d6a665d11","symbol":"BTCUSDT","orderType":"LIMIT","orderSide":"SELL","limitPrice":9,"quantity":8,"filledAveragePrice":0,"filledCumulativeQuantity":0,"openQuantity":8,"orderStatus":"FILLED","createdAt":1524832607361,"updatedAt":1524832607361,"cancelledUpdateAt":null,"filledUpdatedAt":null,"cumulativeCommission":0},{"accountId":"ST-00000001","orderId":"2632f4a966f149eaa85a865fc4e113d4","symbol":"BTCUSDT","orderType":"LIMIT","orderSide":"SELL","limitPrice":6,"quantity":5,"filledAveragePrice":0,"filledCumulativeQuantity":0,"openQuantity":5,"orderStatus":"FILLED","createdAt":1524832599857,"updatedAt":1524832599857,"cancelledUpdateAt":null,"filledUpdatedAt":null,"cumulativeCommission":0},{"accountId":"ST-00000001","orderId":"90f4074f13294362a8018e32dfa3cf3f","symbol":"BTCUSDT","orderType":"LIMIT","orderSide":"SELL","limitPrice":4,"quantity":5,"filledAveragePrice":0,"filledCumulativeQuantity":0,"openQuantity":5,"orderStatus":"FILLED","createdAt":1524829051532,"updatedAt":1524829051532,"cancelledUpdateAt":null,"filledUpdatedAt":null,"cumulativeCommission":0},{"accountId":"ST-00000001","orderId":"1713a8ebef2d43e7a331a4e85f7ce74e","symbol":"BTCUSDT","orderType":"LIMIT","orderSide":"SELL","limitPrice":2,"quantity":3,"filledAveragePrice":0,"filledCumulativeQuantity":0,"openQuantity":3,"orderStatus":"FILLED","createdAt":1524829043477,"updatedAt":1524829043477,"cancelledUpdateAt":null,"filledUpdatedAt":null,"cumulativeCommission":0},{"accountId":"ST-00000001","orderId":"aca40d1773504c428b0b1cb35ec38116","symbol":"BTCUSDT","orderType":"LIMIT","orderSide":"BUY","limitPrice":4,"quantity":5,"filledAveragePrice":0,"filledCumulativeQuantity":0,"openQuantity":5,"orderStatus":"FILLED","createdAt":1524813638071,"updatedAt":1524813638071,"cancelledUpdateAt":null,"filledUpdatedAt":null,"cumulativeCommission":0},{"accountId":"ST-00000001","orderId":"85a74d8d5eec4ac6839b92e2f1a94eae","symbol":"BTCUSDT","orderType":"LIMIT","orderSide":"SELL","limitPrice":3,"quantity":4,"filledAveragePrice":0,"filledCumulativeQuantity":0,"openQuantity":4,"orderStatus":"FILLED","createdAt":1524813347188,"updatedAt":1524813347188,"cancelledUpdateAt":null,"filledUpdatedAt":null,"cumulativeCommission":0},{"accountId":"ST-00000001","orderId":"564fe19a5a5f42a1a00a020d59684d4d","symbol":"BTCUSDT","orderType":"LIMIT","orderSide":"BUY","limitPrice":32,"quantity":46,"filledAveragePrice":0,"filledCumulativeQuantity":0,"openQuantity":46,"orderStatus":"FILLED","createdAt":1524808025601,"updatedAt":1524808025601,"cancelledUpdateAt":null,"filledUpdatedAt":null,"cumulativeCommission":0},{"accountId":"ST-00000001","orderId":"9fb5eab33cf94c5fbd9c94d1230c3773","symbol":"BTCUSDT","orderType":"LIMIT","orderSide":"SELL","limitPrice":51,"quantity":61,"filledAveragePrice":0,"filledCumulativeQuantity":0,"openQuantity":61,"orderStatus":"FILLED","createdAt":1524808022265,"updatedAt":1524808022265,"cancelledUpdateAt":null,"filledUpdatedAt":null,"cumulativeCommission":0},{"accountId":"ST-00000001","orderId":"06fbb872dcca4cada9b8ff111ef97a5a","symbol":"BTCUSDT","orderType":"LIMIT","orderSide":"SELL","limitPrice":5,"quantity":6,"filledAveragePrice":0,"filledCumulativeQuantity":0,"openQuantity":6,"orderStatus":"FILLED","createdAt":1524808017642,"updatedAt":1524808017642,"cancelledUpdateAt":null,"filledUpdatedAt":null,"cumulativeCommission":0},{"accountId":"ST-00000001","orderId":"07b76a480c684e85aa68520d39c71340","symbol":"BTCUSDT","orderType":"LIMIT","orderSide":"BUY","limitPrice":3,"quantity":4,"filledAveragePrice":0,"filledCumulativeQuantity":0,"openQuantity":4,"orderStatus":"FILLED","createdAt":1524808013854,"updatedAt":1524808013854,"cancelledUpdateAt":null,"filledUpdatedAt":null,"cumulativeCommission":0}]
     * page : 1
     * pages : 1
     * limit : 100
     * count : 29
     */

    private BigDecimal page;
    private BigDecimal pages;
    private BigDecimal limit;
    private BigDecimal count;
    private List<DataBean> data;

    public BigDecimal getPage() {
        return page;
    }

    public void setPage(BigDecimal page) {
        this.page = page;
    }

    public BigDecimal getPages() {
        return pages;
    }

    public void setPages(BigDecimal pages) {
        this.pages = pages;
    }

    public BigDecimal getLimit() {
        return limit;
    }

    public void setLimit(BigDecimal limit) {
        this.limit = limit;
    }

    public BigDecimal getCount() {
        return count;
    }

    public void setCount(BigDecimal count) {
        this.count = count;
    }

    public List<DataBean> getData() {
        return data;
    }

    public void setData(List<DataBean> data) {
        this.data = data;
    }

    public static class DataBean {
        /**
         * accountId : ST-00000001
         * orderId : 46214603f33e48f19e41ef58b571a996
         * symbol : 55TBTC
         * orderType : LIMIT
         * orderSide : BUY
         * limitPrice : 1
         * quantity : 1
         * filledAveragePrice : 0
         * filledCumulativeQuantity : 0
         * openQuantity : 1
         * orderStatus : CANCELLED
         * createdAt : 1525253203620
         * updatedAt : 1525253203620
         * cancelledUpdateAt : 1525254288607
         * filledUpdatedAt : null
         * cumulativeCommission : 0
         */

        private String accountId;
        private String orderId;
        private String symbol;
        private String orderType;
        private String orderSide;
        private BigDecimal limitPrice;
        private BigDecimal quantity;
        private BigDecimal filledAveragePrice;
        private BigDecimal filledCumulativeQuantity;
        private BigDecimal openQuantity;
        private String orderStatus;
        private long createdAt;
        private long updatedAt;
        private long cancelledUpdateAt;
        private Object filledUpdatedAt;
        private BigDecimal cumulativeCommission;

        public String getAccountId() {
            return accountId;
        }

        public void setAccountId(String accountId) {
            this.accountId = accountId;
        }

        public String getOrderId() {
            return orderId;
        }

        public void setOrderId(String orderId) {
            this.orderId = orderId;
        }

        public String getSymbol() {
            return symbol;
        }

        public void setSymbol(String symbol) {
            this.symbol = symbol;
        }

        public String getOrderType() {
            return orderType;
        }

        public void setOrderType(String orderType) {
            this.orderType = orderType;
        }

        public String getOrderSide() {
            return orderSide;
        }

        public void setOrderSide(String orderSide) {
            this.orderSide = orderSide;
        }

        public BigDecimal getLimitPrice() {
            return limitPrice;
        }

        public void setLimitPrice(BigDecimal limitPrice) {
            this.limitPrice = limitPrice;
        }

        public BigDecimal getQuantity() {
            return quantity;
        }

        public void setQuantity(BigDecimal quantity) {
            this.quantity = quantity;
        }

        public BigDecimal getFilledAveragePrice() {
            return filledAveragePrice;
        }

        public void setFilledAveragePrice(BigDecimal filledAveragePrice) {
            this.filledAveragePrice = filledAveragePrice;
        }

        public BigDecimal getFilledCumulativeQuantity() {
            return filledCumulativeQuantity;
        }

        public void setFilledCumulativeQuantity(BigDecimal filledCumulativeQuantity) {
            this.filledCumulativeQuantity = filledCumulativeQuantity;
        }

        public BigDecimal getOpenQuantity() {
            return openQuantity;
        }

        public void setOpenQuantity(BigDecimal openQuantity) {
            this.openQuantity = openQuantity;
        }

        public String getOrderStatus() {
            return orderStatus;
        }

        public void setOrderStatus(String orderStatus) {
            this.orderStatus = orderStatus;
        }

        public long getCreatedAt() {
            return createdAt;
        }

        public void setCreatedAt(long createdAt) {
            this.createdAt = createdAt;
        }

        public long getUpdatedAt() {
            return updatedAt;
        }

        public void setUpdatedAt(long updatedAt) {
            this.updatedAt = updatedAt;
        }

        public long getCancelledUpdateAt() {
            return cancelledUpdateAt;
        }

        public void setCancelledUpdateAt(long cancelledUpdateAt) {
            this.cancelledUpdateAt = cancelledUpdateAt;
        }

        public Object getFilledUpdatedAt() {
            return filledUpdatedAt;
        }

        public void setFilledUpdatedAt(Object filledUpdatedAt) {
            this.filledUpdatedAt = filledUpdatedAt;
        }

        public BigDecimal getCumulativeCommission() {
            return cumulativeCommission;
        }

        public void setCumulativeCommission(BigDecimal cumulativeCommission) {
            this.cumulativeCommission = cumulativeCommission;
        }
    }
}
